package com.jade.common.utils;

import java.util.UUID;

/**
 * ClassName: UUIDUtils <br/>
 * Description: uuid 生成 32 为 <br/>
 * date: 2019/1/10 16:32<br/>
 *
 * @author caiwen
 * @since JDK 1.8
 */
public class UUIDUtils {
    public static String[] getUUID(int num) {

        if (num <= 0)
            return null;

        String[] uuidArr = new String[num];

        for (int i = 0; i < uuidArr.length; i++) {
            uuidArr[i] = getUUID();
        }

        return uuidArr;
    }

    //得到32位的uuid
    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "").toLowerCase();
    }


}
